@import '../t_iconfont.css';
.resource-model-graph-group {
    width: 100%;
    height: 100%;
    overflow: hidden;
    .hcp__card {
        margin-top: 10px;
        overflow: hidden;
        overflow-y: auto;
    }
    .main-views {
        position: relative;
        height: 100%;
        .drag-box {
            // height: 100%;
            padding: 10px;
            overflow: auto;
            background: white;
            .drag-item {
                height: 69px;
                padding-top: 5px;
                .drag-icon {
                    text-align: center;
                    .iconfont {
                        width: 35px;
                        height: 35px;
                        margin: 0 auto;
                        line-height: 35px;
                        border: 1px solid rgb(0, 141, 255);
                        border-radius: 50%;
                    }
                }
                .name {
                    margin: 5px 0;
                    color: rgb(67, 67, 67);
                    font-size: 12px;
                    overflow: hidden;
                    text-align: center;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
            }
        }
        .right-content {
            position: relative;
            width: 286px;
            height: 100%;
            padding: 10px;
            overflow: auto;
            background-color: #fff;
            .header-box {
                margin-bottom: 10px;
                .iconfont {
                    margin-right: 5px;
                    color: white !important;
                }
                .level {
                    margin-top: 10px;
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    .name {
                        margin-right: 10px;
                    }
                }
            }
        }
    }
}
#model-graph-container{
    position: relative;
    z-index: 10;
    .g6-component-toolbar{
        left: auto;
        bottom: auto;
        top: 20px;
        right: 10px;
        width: 30px;
        li {
            width: auto;
        }
        .t-iconfont,
        .iconfont{
            cursor: pointer;
            padding-top: 5px;
            width: auto;
            height: auto;
            font-size: 16px;
            color: #4E84E9;
            &:first-child{
                border:0;
                margin-top:0;
                padding-top:0;
            }
            &::before{display:block;}
            &:hover::before{
                transform: scale(1.2);
                color: #438bff;
            }
            &.rotate-90 {
                transform: rotate(90deg);
            }
            &.rotate-180 {
                transform: rotate(180deg);
                margin-top: 5px;
            }
            &.rotate-270 {
                transform: rotate(270deg);
                margin-left: -5px;
            }
        }
    }
    .icon-why{
        margin-top: 5px;
        border-top: 1px solid #e0e0e0;
    }
    .g6-minimap{
        position: absolute;
        right: 10px;
        bottom: 10px;
        z-index: 20;
        background:#fff;
        border: 1px solid #e0e0e0;
    }
    .g6-component-tooltip-reset,
    .g6-component-contextmenu-reset {
        position: relative;
        .all-box {
            position: relative;
            width: 100px;
            -webkit-box-shadow: 0 0 6px 0 rgb(88 175 6.07142857%);
            box-shadow: 0 0 6px 0 rgb(88 175 6.07142857%);
            border: 1px solid #4E84E9;
            background-color: #fff;
            border-radius: 4px;
            color: #4E84E9;
            text-align: center;
            line-height: 14px;
            cursor: pointer;
            &:before{
                content: "";
                position: absolute;
                left: -11px;
                top: calc(50% - 6px);
                border-top:6px solid transparent;
                border-bottom: 6px solid transparent;
                border-right: 10px solid rgba(30, 136, 235, 0.48);
            }
            &:after{
                content: "";
                position:absolute;
                left: -9px;
                top: calc(50% - 6px);
                border-top: 6px solid transparent;
                border-bottom: 6px solid transparent;
                border-right: 10px solid #fff;
            }
            .menu-item {
                margin: 5px 0;
                padding-bottom: 5px;
                border-bottom: 1px solid;
                &:last-child {
                    border-bottom: 0;
                    padding-bottom: 0;
                }
            }
        }
    }
    
    // canvas {
    //     position: absolute;
    //     z-index: 2;
    // }
    // .g6-grid-container {
    //     z-index: 1 !important;
    // }
}